package com.ieng.ormosia.connect.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 角色表
 */
@ApiModel(value = "model-Role")
@Data
public class Role implements Serializable {
	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	private Long id;

	/**
	 * 角色名称
	 */
	@ApiModelProperty(value = "角色名称")
	@NotBlank(message = "角色名称不能为空")
	private String name;

	/**
	 * 角色标识
	 */
	@ApiModelProperty(value = "角色标识")
	private String permit;

	/**
	 * 角色级别
	 */
	@ApiModelProperty(value = "角色级别")
	private Integer level;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sort;

	/**
	 * 状态-#1:正常#0:禁用
	 */
	@ApiModelProperty(value = "状态-#1:正常#0:禁用")
	private String status;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String notes;

	/**
	 * 创建者
	 */
	@ApiModelProperty(value = "创建者")
	private String createBy;

	/**
	 * 更新者
	 */
	@ApiModelProperty(value = "更新者")
	private String changeBy;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	private LocalDateTime changeTime;

	/**
	 * 逻辑删除-#0:未删除#1:删除
	 */
	@ApiModelProperty(value = "逻辑删除-#0:未删除#1:删除")
	private String deleted;

	private Long[] permissionIds;

	private static final long serialVersionUID = 1L;
}